package tw.asap.plus.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Description:
 * Created:      [15/11/23]
 * Author:       [Yang]
 **/
public class LocationBean implements Parcelable {

    public String latitude= "";
    public String longitude= "";
    public String name= "";
    public String address = "";

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.latitude);
        dest.writeString(this.longitude);
        dest.writeString(this.name);
        dest.writeString(this.address);
    }

    public LocationBean() {
    }

    protected LocationBean(Parcel in) {
        this.latitude = in.readString();
        this.longitude = in.readString();
        this.name = in.readString();
        this.address = in.readString();
    }

    public static final Parcelable.Creator<LocationBean> CREATOR = new Parcelable.Creator<LocationBean>() {
        public LocationBean createFromParcel(Parcel source) {
            return new LocationBean(source);
        }

        public LocationBean[] newArray(int size) {
            return new LocationBean[size];
        }
    };
}
